<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="robots" content="noindex,nofollow">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title><?php echo $cfg_webname;?>后台管理</title>
		<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
		<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="/static/web/css/admin.css">
		<script src="/static/web/js/jquery.min.js"></script>
		<script src="/static/web/js/admin.main.js"></script>
	</head>
	<body class="menu-show">
		<?php if (preg_match('/MSIE/i',$_SERVER['HTTP_USER_AGENT']) || preg_match('/Trident/i',$_SERVER['HTTP_USER_AGENT'])) {?>
		<div class="browsehappy">
			<span>您使用的浏览器已过时，请<a href="https://www.dedebiz.com/browsehappy" target="_blank">更换浏览器</a>，提高后台操作体验</span>
		</div>
		<?php }?>
		<div class="admin-head">
			<div class="logo">
				<a href="index_body.php" target="main" class="name"><?php echo cn_substr($cfg_webname, 12);?></a>
				<span class="version"><?php echo $cfg_version_detail;?></span>
				<?php if (DEDEBIZ_SAFE_MODE) {?>
				<a href="index_body.php?dopost=safe_mode" target="main" class="btn btn-primary btn-xs">安全</a>
				<?php } else {?>
				<a href="index_body.php?dopost=safe_mode" target="main" class="btn btn-warning btn-xs">开发</a>
				<?php }?>
			</div>
			<nav class="item">
				<ul>
					<li><a href="javascript:;" id="togglemenu" title="侧边伸缩"><i class="fa fa-dedent"></i></a></li>
					<?php if ($cuserLogin->getUserType() >= 5) {?>
					<li class="d-none d-lg-block"><a href="catalog_main.php" target="main" title="栏目管理"><i class="fa fa-bars"></i></a></li>
					<li class="d-none d-lg-block"><a href="tags_main.php" target="main" title="标签管理"><i class="fa fa-tags"></i></a></li>
					<li class="d-none d-lg-block"><a href="file_manage_main.php<?php echo DEDEBIZ_SAFE_MODE ? '?activepath='.$cfg_medias_dir:'';?>" target="main" title="文件管理"><i class="fa fa-folder"></i></a></li>
					<li class="d-none d-lg-block"><a href="diy_main.php" target="main" title="自定义表单管理"><i class="fa fa-area-chart"></i></a></li>
					<?php }?>
					<?php if (!DEDEBIZ_SAFE_MODE) {?>
					<li class="d-none d-lg-block"><a href="templets_main.php" target="main" title="主题模板"><i class="fa fa-cube"></i></a></li>
					<?php }?>
					<li class="d-none d-lg-block"><a href="makehtml_all.php" target="main" title="更新整站"><i class="fa fa-repeat"></i></a></li>
					<li class="d-none d-lg-block"><a href="sys_info.php" target="main" title="系统设置"><i class="fa fa-cog"></i></a></li>
					<li class="d-none d-lg-block">
						<form action="action_search.php" method="post" target="main">
							<input type="text" name="keyword" placeholder="功能搜索" class="admin-input-sm">
							<button type="submit" class="search"><i class="fa fa-search"></i></button>
						</form>
					</li>
				</ul>
			</nav>
			<div class="user">
				<ul>
					<li class="d-none d-lg-block"><a href="/" target="_blank" title="预览首页"><i class="fa fa-home"></i></a></li>
					<?php echo ($cfg_mb_open == 'Y') ? '<li><a href="/user/" target="_blank" title="会员中心"><i class="fa fa-user-circle"></i></a></li>' : '';?>
					<li class="d-none d-lg-block"><a href="javascript:document.getElementById('main').contentWindow.location.reload(true);" title="刷新页面"><i class="fa fa-refresh"></i></a></li>
					<li class="d-none d-lg-block">
						<a href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID();?>&dopost=edit" target="main"><img src="<?php echo $cuserLogin->getUserFace();?>"><?php echo $cuserLogin->getUserName();?></a>
						<?php if ($cuserLogin->getUserType() == 10) {echo '<span class="btn btn-success btn-xs">管理员</span>';} else if ($cuserLogin->getUserType() == 5) {echo '<span class="btn btn-success btn-xs">栏目员</span>';} else {echo '<span class="btn btn-success btn-xs">文档员</span>';}?>
					</li>
					<li><a href="exit.php" title="退出后台"><i class="fa fa-power-off"></i></a></li>
				</ul>
			</div>
		</div>
		<div class="menu-left">
			<ul id="sidemenu" class="sidemenu">
				<?php 
				$openitem = 100;
				GetMenus($cuserLogin->getUserRank(), 'main'); 
				?>
			</ul>
		</div>
		<div class="body-right">
			<iframe src="index_body.php" name="main" id="main" frameborder="0"></iframe>
		</div>
	</body>
</html>